﻿// See https://aka.ms/new-console-template for more information
using GetDeviceInfo;

void Main()
{
    ShowMenu();
    while (true)
    {
        string input = Console.ReadLine();
        switch (input)
        {
            case "0":
                Environment.Exit(0);
                break;

            case "1":
                SystemInfo.ShowInfo();
                ShowMenu();
                break;

            case "2":
                PriScr.PrintScreen();
                ShowMenu();
                break;


        }
    }
}
void Win32_Keydown(int key)
{
    Console.WriteLine(key);
}
void ShowMenu()
{
    Console.WriteLine("请输入功能编号：");
    Console.WriteLine("1.获取设备信息");
    Console.WriteLine("2.截图");
    Console.WriteLine("0.退出程序");
}

Main();